package com.caishi.lkx.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzw.common.service.model.NameModel;
import lombok.*;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("cu_business")
public class ChannelBusinessModel extends IUserModel<ChannelBusinessModel> implements NameModel<ChannelBusinessModel, String> {


    /**
     * 渠道商code
     */
    private String code;

    /* 平台id */
    private Long groupId;

    /** 老师介绍*/
    private String remark;

    @TableField(exist = false)
    private  String password;
    @TableField(exist = false)
    private List<String> roleIds;
    @TableField(exist = false)
    private List<ActionRoleModel> roles;
    @TableField(exist = false)
    private List<String> roleNames;
    @TableField(exist = false)
    private LoginExpandModel loginData;
    @Override
    public ChannelBusinessModel InstanceThisObj() {
        return new ChannelBusinessModel();
    }

}
